Lars Ingebrigtsen [Thu, 12 May 2022 12:15:12 +0000 (14:15 +0200)]
Make prompt read-only in inferior-scheme-mode
* lisp/cmuscheme.el (inferior-scheme-mode): Make the prompt
read-only to be more consistent with other inferior modes
(bug#21118).
Lars Ingebrigtsen [Thu, 12 May 2022 12:07:29 +0000 (14:07 +0200)]
Fix retrieving images that contain ) characters in shr
* lisp/net/shr.el (shr-save-contents, shr-get-image-data): Don't call.
(shr-encode-url): Make obsolete. (This function makes no sense.)
(shr-tag-img): Don't call.
Lars Ingebrigtsen [Thu, 12 May 2022 11:11:45 +0000 (13:11 +0200)]
Improve url-http debugging
* lisp/url/url-http.el (url-http-parse-headers): Output the
headers we receive in the debug output.
* lisp/url/url-vars.el (url-extensions-header): Remove useless header.
Arash Esbati [Thu, 12 May 2022 10:52:00 +0000 (12:52 +0200)]
; lisp/textmodes/reftex-cite.el: Fix docstring
* lisp/textmodes/reftex-cite.el
(reftex-extract-bib-entries-from-thebibliography): Quote
backslash in docstring.
Po Lu [Thu, 12 May 2022 09:21:39 +0000 (17:21 +0800)]
Fix build on Mac OS X 10.11
* src/nsterm.h (NSButtonTypeMomentaryPushIn): New define.
Stefan Kangas [Thu, 12 May 2022 09:07:51 +0000 (11:07 +0200)]
* lisp/array.el (array-mode-map): Prefer defvar-keymap.
Po Lu [Thu, 12 May 2022 07:39:11 +0000 (07:39 +0000)]
Fix searching the bitmap file path on Haiku
* src/image.c (image_create_bitmap_from_file): [HAVE_HAIKU]:
Look for the bitmap inside `x-bitmap-file-path' as well.
Stefan Kangas [Thu, 12 May 2022 07:32:10 +0000 (09:32 +0200)]
; * src/bytecode.c (exec_byte_code): Fix white space.
Michael Albinus [Thu, 12 May 2022 07:03:45 +0000 (09:03 +0200)]
Improve Tramp's write-region
* lisp/net/tramp-sudoedit.el (tramp-sudoedit-file-name-handler-alist):
Use `tramp-handle-write-region'.
(tramp-sudoedit-handle-write-region): Remove.
* lisp/net/tramp.el (tramp-skeleton-write-region):
Set extended attributes.
Po Lu [Thu, 12 May 2022 06:55:41 +0000 (14:55 +0800)]
Fix merging of anonymous faces with an `:extend' property on unexec
* src/emacs.c (main): Unconditionally call `init_xfaces'.
* src/lisp.h: Enable `init_xfaces' on unexec builds too.
* src/xfaces.c (init_xfaces): Move fix for bug#34226 into
pdumper-specific section leaving the initialization of
`face_attr_sym' intact.
Po Lu [Thu, 12 May 2022 05:31:08 +0000 (13:31 +0800)]
Improve mouse dragging
* lisp/mouse.el (mouse-drag-and-drop-region-display-tooltip):
Respect foreground and background parameters.
(mouse-drag-and-drop-region): Enable fine grained tracking.
Eli Zaretskii [Thu, 12 May 2022 06:47:25 +0000 (09:47 +0300)]
; Improve documentation of 'restore-buffer-modified-p'
* src/buffer.c (Frestore_buffer_modified_p):
* doc/lispref/buffers.texi (Buffer Modification): Fix doc wording.
Eli Zaretskii [Thu, 12 May 2022 06:29:53 +0000 (09:29 +0300)]
; Improve documentation of 'switch-to-prev-buffer-skip-regexp'
* lisp/window.el (switch-to-prev-buffer-skip-regexp):
* etc/NEWS:
* doc/lispref/windows.texi (Window History): Improve wording of
the documentation of 'switch-to-prev-buffer-skip-regexp'.
(Bug#19070)
Eli Zaretskii [Thu, 12 May 2022 06:16:24 +0000 (09:16 +0300)]
; Improve documentation of 'imenu-flush-cache'
* etc/NEWS: Expand the description of 'imenu-flush-cache'.
* doc/emacs/programs.texi (Imenu): Document 'imenu-flush-cache'.
* lisp/imenu.el (imenu-flush-cache): Doc fix. (Bug#20589)
Po Lu [Thu, 12 May 2022 04:11:12 +0000 (04:11 +0000)]
Make cursor display on Haiku consistent with X
* src/haikuterm.c (haiku_draw_image_glyph_string): Merge cursor
foregrounds correctly.
(haiku_draw_hollow_cursor, haiku_draw_bar_cursor): New
functions. Port code from X.
(haiku_draw_window_cursor): Port code from X so bar cursors on
top of images are treated right.
Lars Ingebrigtsen [Thu, 12 May 2022 02:44:47 +0000 (04:44 +0200)]
Fix cperl-file-style defcustom type
* lisp/progmodes/cperl-mode.el (cperl-file-style): Fix the type.
Po Lu [Thu, 12 May 2022 02:29:15 +0000 (02:29 +0000)]
Clean up Haiku display opening code
* src/haikufns.c (Fx_open_connection):
(Fhaiku_frame_list_z_order): Improve error messages and fix
coding style.
Lars Ingebrigtsen [Thu, 12 May 2022 02:24:32 +0000 (04:24 +0200)]
Add new command 'imenu-flush-cache'
* lisp/imenu.el (imenu-flush-cache): New command (bug#20589).
Lars Ingebrigtsen [Thu, 12 May 2022 01:59:16 +0000 (03:59 +0200)]
New command 'package-update-all'
* lisp/emacs-lisp/package.el (package-update-all): New function
(bug#19146).
(package--updateable-packages): Factored out...
(package-update): ... from here.
Po Lu [Thu, 12 May 2022 01:36:43 +0000 (09:36 +0800)]
Port some stuff to XCB to avoid confusing Xlib behavior
* src/xterm.c (x_set_frame_alpha, handle_one_xevent): Port
retrieving the opacity property to XCB.
Lars Ingebrigtsen [Thu, 12 May 2022 01:35:21 +0000 (03:35 +0200)]
Add new user option switch-to-prev-buffer-skip-regexp
* doc/lispref/windows.texi (Window History): Document it.
* lisp/window.el (switch-to-prev-buffer-skip): Mention it.
(switch-to-prev-buffer-skip-regexp): New user option (bug#19070).
(switch-to-prev-buffer-skip-p): Use it.
Lars Ingebrigtsen [Thu, 12 May 2022 01:09:22 +0000 (03:09 +0200)]
Bind TAB in indent-rigidly-map as a convenience
* lisp/indent.el (indent-rigidly): Mention it.
(indent-rigidly-map): Bind TAB so that `C-x TAB TAB...' does the
logical thing.
Po Lu [Thu, 12 May 2022 01:07:59 +0000 (09:07 +0800)]
Only handle SelectionRequest events from the DND display during DND
* src/xterm.c (handle_one_xevent): Handle only SelectionRequest
events from the DND frame's display via hold_quit.
Lars Ingebrigtsen [Thu, 12 May 2022 00:54:24 +0000 (02:54 +0200)]
Make message load eudc-capf more lazily
* lisp/gnus/message.el (eudc-capf): Remove require, because all
the relevant eudc-capf functions are autoloaded, apparently.
Lars Ingebrigtsen [Thu, 12 May 2022 00:51:53 +0000 (02:51 +0200)]
Make anchored regexps work in image-dired-mark-tagged-files
* lisp/image-dired.el (image-dired-mark-tagged-files): Make
anchored regexps work (bug#55375).
Lars Ingebrigtsen [Thu, 12 May 2022 00:27:22 +0000 (02:27 +0200)]
Fix non-variable widgets in the 'H' command in Cus-mode
* lisp/cus-edit.el (custom-mode-map):
(custom-commands): Adjust.
(custom-toggle-hide-all-widgets): Rename and work for all widget
types, not just variables.
Lars Ingebrigtsen [Thu, 12 May 2022 00:16:38 +0000 (02:16 +0200)]
Adjust restore-buffer-modified-p autosaved logic
* doc/lispref/buffers.texi (Buffer Modification): Adjust
documentation.
* src/buffer.c (Frestore_buffer_modified_p): Fix up the logic
around `autosaved': It means "the buffer is modified, and also
autosaved".
Lars Ingebrigtsen [Wed, 11 May 2022 23:48:40 +0000 (01:48 +0200)]
Make C-u M-x apropos-user-option include buttons
* lisp/apropos.el (apropos-user-option): Include buttons in the
output always (bug#55376).
(apropos-print-doc): Don't insert three spaces in the
non-apropos-multi-type case.
Stefan Monnier [Wed, 11 May 2022 21:17:10 +0000 (17:17 -0400)]
(byte-compile-eval): Avoid some false positive "noruntime" warnings
* lisp/emacs-lisp/bytecomp.el (byte-compile-eval): Loosen the check
before refraining from adding a function to noruntime.
Lars Ingebrigtsen [Wed, 11 May 2022 19:16:23 +0000 (21:16 +0200)]
Fix regression in edmacro-finish-edit when parsing "none"
* lisp/edmacro.el (edmacro-finish-edit): Use `kbd' here because
we're comparing the result to a string (bug#55372).
Paul Eggert [Wed, 11 May 2022 17:13:09 +0000 (10:13 -0700)]
functionp doc improvement
* doc/lispref/eval.texi, doc/lispref/functions.texi, src/eval.c:
Document functionp a bit more carefully. It can return t
on non-functions.
Eli Zaretskii [Wed, 11 May 2022 16:31:16 +0000 (19:31 +0300)]
; * etc/NEWS: Fix a typo.
Tino Calancha [Wed, 11 May 2022 16:01:11 +0000 (18:01 +0200)]
char-uppercase-p: New predicate
Return non-nil if its argument is an uppercase character.
Suggested in Bug#54804.
* lisp/subr.el (char-uppercase-p): New defun.
* etc/NEWS (Lisp Changes in Emacs 29.1): Announce it
* doc/lispref/display.texi (Size of Displayed Text): Document it.
* test/lisp/subr-tests.el (test-char-uppercase-p): Add a test.
Michael Albinus [Wed, 11 May 2022 16:02:13 +0000 (18:02 +0200)]
Improve handling of `tramp-set-file-uid-gid'
* lisp/net/tramp.el (tramp-skeleton-write-region):
Call `tramp-set-file-uid-gid' properly.
(tramp-set-file-uid-gid): Handle also `tramp-crypt-file-name-handler'.
* test/lisp/net/tramp-tests.el (tramp-test27-load): Adapt test.
Lars Ingebrigtsen [Wed, 11 May 2022 15:51:05 +0000 (17:51 +0200)]
Clarify precedence rules in Active Display Table manual node
* doc/lispref/display.texi (Active Display Table): Say what "takes
precedence" means here (bug#18546).
Lars Ingebrigtsen [Wed, 11 May 2022 15:10:30 +0000 (17:10 +0200)]
Allow giving switches to the program in `M-x term'
* lisp/term.el (term, ansi-term): Allow giving switches to the
program (bug#18105).
Lars Ingebrigtsen [Wed, 11 May 2022 14:47:53 +0000 (16:47 +0200)]
Fix previous cperl-file-style change
* lisp/progmodes/cperl-mode.el (cperl--set-file-style): New function.
(cperl-mode): Add it to hack-local-variables-hook to really set
the cperl style.
Lars Ingebrigtsen [Wed, 11 May 2022 14:29:14 +0000 (16:29 +0200)]
Regenerated ldefs-boot.el
Lars Ingebrigtsen [Wed, 11 May 2022 14:29:01 +0000 (16:29 +0200)]
Add new user option 'cperl-file-style'
* lisp/progmodes/cperl-mode.el (cperl-file-style): New user option
(bug#17948).
(cperl-mode): Mention it.
(cperl-style-alist): Mention it.
Lars Ingebrigtsen [Wed, 11 May 2022 14:11:23 +0000 (16:11 +0200)]
Fix fontification of multi-line declarations in f90-mode
* lisp/progmodes/f90.el (f90-font-lock-keywords-2): Fontify
multi-line declarations (bug#17222).
Stefan Kangas [Wed, 11 May 2022 04:22:57 +0000 (06:22 +0200)]
* etc/NEWS: Improve some entries.
Stefan Kangas [Tue, 10 May 2022 21:20:52 +0000 (23:20 +0200)]
* lisp/net/browse-url.el (browse-url-button-map): Prefer defvar-keymap.
Stefan Kangas [Tue, 10 May 2022 21:13:19 +0000 (23:13 +0200)]
* lisp/scroll-lock.el (scroll-lock-mode-map): Prefer defvar-keymap.
Stefan Kangas [Tue, 10 May 2022 20:59:57 +0000 (22:59 +0200)]
* lisp/iimage.el (iimage-mode-map): Prefer defvar-keymap.
Stefan Kangas [Tue, 10 May 2022 20:55:08 +0000 (22:55 +0200)]
* lisp/calendar/diary-lib.el (diary-mode-map): Prefer defvar-keymap.
Eli Zaretskii [Wed, 11 May 2022 13:49:15 +0000 (16:49 +0300)]
; * lisp/cus-edit.el (custom-toggle-hide-all-variables): Doc fix.
Lars Ingebrigtsen [Wed, 11 May 2022 13:13:37 +0000 (15:13 +0200)]
Add grep-files-aliases entry for .am files
* lisp/progmodes/grep.el (grep-files-aliases): Add an alias for
.am files (bug#16921).
Lars Ingebrigtsen [Wed, 11 May 2022 13:02:08 +0000 (15:02 +0200)]
Make recent nicknames erc change more backwards-compatible
* lisp/erc/erc-button.el (erc-button-add-buttons): Make the
nicknames change more backwards-compatible (bug#16271).
Lars Ingebrigtsen [Wed, 11 May 2022 12:59:17 +0000 (14:59 +0200)]
Add new command 'vc-dir-mark-by-regexp'
* doc/emacs/maintaining.texi (VC Directory Commands): Document it.
* lisp/vc/vc-dir.el (vc-dir-mode-map): Bind it to `%'.
(vc-dir-mark-by-regexp): New command (bug#16460).
Po Lu [Wed, 11 May 2022 12:40:32 +0000 (12:40 +0000)]
Add support for changing pointer types on Haiku
* doc/lispref/frames.texi (Pointer Shape): Document that the
pointer shape can now be changed on some window systems other
than X.
* lisp/term/haiku-win.el (x-pointer-X-cursor, x-pointer-arrow)
(x-pointer-bottom-left-corner, x-pointer-bottom-right-corner)
(x-pointer-bottom-side, x-pointer-clock, x-pointer-cross)
(x-pointer-cross-reverse, x-pointer-crosshair)
(x-pointer-diamond-cross, x-pointer-hand1, x-pointer-hand2)
(x-pointer-left-side, x-pointer-right-side)
(x-pointer-sb-down-arrow, x-pointer-sb-left-arrow)
(x-pointer-sb-right-arrow, x-pointer-sb-up-arrow, x-pointer-target)
(x-pointer-top-left-corner, x-pointer-top-right-corner)
(x-pointer-top-side, x-pointer-watch, x-pointer-invisible): New
pointer constants.
* src/haiku_support.cc (BCursor_from_id): Accept int instead of
enum.
* src/haiku_support.h: Update prototypes.
* src/haikufns.c (haiku_create_frame): Stop manually assigning
cursors and set default value of the mouse color property.
(haiku_free_frame_resources): Free custom cursors too.
(struct user_cursor_info, INIT_USER_CURSOR): New struct.
(haiku_free_custom_cursors): New function.
(haiku_set_mouse_color): New param handler.
(haiku_frame_parm_handlers): Add param handler.
(syms_of_haikufns): New cursor shape variables from X.
* src/haikuterm.h: Update prototypes.
Lars Ingebrigtsen [Wed, 11 May 2022 12:28:32 +0000 (14:28 +0200)]
Fix compilation warning in gdb-mi.el
* lisp/progmodes/gdb-mi.el (gud-go): Fix compilation warning
introduced by previous change.
Lars Ingebrigtsen [Wed, 11 May 2022 12:26:53 +0000 (14:26 +0200)]
Bind gud-go and allow the prefix to enter arguments
* lisp/progmodes/gdb-mi.el (gdb): Bind gud-go to `C-c C-v' and
allow a prefix to enter arguments (bug#10106).
Lars Ingebrigtsen [Wed, 11 May 2022 12:18:27 +0000 (14:18 +0200)]
Don't signal errors in check-declare-directory
* lisp/emacs-lisp/check-declare.el (check-declare-directory): Don't
bug out if we don't find any files with declare-function:(bug#55354)
because this is a predicate function, and that's inconvenient.
Yoav Marco [Wed, 11 May 2022 12:05:37 +0000 (14:05 +0200)]
(sqlite-mode--column-names): Suppport nested parens
* lisp/sqlite-mode.el (sqlite-mode--column-names): Make parsing
more resilient (bug#55363).
Copyright-paperwork-exempt: yes
Lars Ingebrigtsen [Wed, 11 May 2022 11:56:10 +0000 (13:56 +0200)]
Revert "Add meta navigation keys to outline-minor-mode-cycle-map"
This reverts commit
2e949031160d769bbac941c064b825a5c578afc5.
These key bindings are too intrusive.
Lars Ingebrigtsen [Wed, 11 May 2022 11:42:02 +0000 (13:42 +0200)]
Don't try to toggle untogglable widgets in custom-toggle-hide-all-variables
* lisp/cus-edit.el (custom-toggle-hide-all-variables): Only toggle
the widgets that can be toggled.
Lars Ingebrigtsen [Wed, 11 May 2022 10:51:11 +0000 (12:51 +0200)]
Warn about quoted symbols in defcustom choice/other forms
* lisp/emacs-lisp/bytecomp.el
(byte-compile--suspicious-defcustom-choice): New function (bug#16271).
(byte-compile-nogroup-warn): Use it to warn about forms like
(choice (const :tag "foo" 'bar)).
Lars Ingebrigtsen [Wed, 11 May 2022 10:37:07 +0000 (12:37 +0200)]
Use `nicknames' instead if `'nicknames' in erc-button-alist
* lisp/erc/erc-button.el (erc-button-alist): Use "nicknames"
instead of "'nicknames" to enable automatic syntax checking
(bug#16271).
(erc-button-add-buttons): Adjust usage.
Lars Ingebrigtsen [Wed, 11 May 2022 00:31:29 +0000 (02:31 +0200)]
Regenerated ldefs-boot.el
Lars Ingebrigtsen [Wed, 11 May 2022 00:25:14 +0000 (02:25 +0200)]
Fix more defcustom :type errors
* lisp/vc/vc-src.el (vc-src-master-templates):
* lisp/vc/vc-rcs.el (vc-rcs-master-templates): Remove quote
characters inserted by mistake.
Mattias Engdegård [Sun, 8 May 2022 21:37:10 +0000 (23:37 +0200)]
Remedy ineffective backslashes and fix regexps
* lisp/info.el (Info-read-node-name-2): Double backslash for intended
escaping effect.
* lisp/term.el (term-send-function-key): Remove redundant `+`.
* lisp/leim/quail/indian.el:
* lisp/simple.el (scratch-buffer, get-scratch-buffer-create):
Remove ineffective backslashes.
Mattias Engdegård [Sun, 8 May 2022 21:33:49 +0000 (23:33 +0200)]
* src/lisp.h (FOR_EACH_TAIL_INTERNAL): Faster node comparison.
Po Lu [Wed, 11 May 2022 08:01:32 +0000 (16:01 +0800)]
Fix mouse pointer avoidance in some configurations
* lisp/avoid.el (mouse-avoidance-random-shape): Ignore invisible
pointer.
(mouse-avoidance-ignore-p): Adjust for interprogram DND.
* lisp/term/x-win.el (x-pointer-invisible): Make value larger
than the maximum possible glyph.
* src/xfns.c (x_set_mouse_color): Use function that handles
`x-pointer-invisible' too.
* src/xterm.c (x_create_font_cursor): New function. Handle
invisible cursors.
* src/xterm.h: Update prototypes.
Juri Linkov [Wed, 11 May 2022 07:50:12 +0000 (10:50 +0300)]
* lisp/textmodes/string-edit.el: Improvements for pop-to-buffer (bug#33007)
* lisp/textmodes/string-edit.el (string-edit): Use pop-to-buffer
with fit-window-to-buffer after the buffer is filled with text.
(string-edit-done, string-edit-abort): Use (quit-window 'kill).
Po Lu [Wed, 11 May 2022 06:59:39 +0000 (06:59 +0000)]
Make Haiku event buffer non-static
* src/haikuterm.c (haiku_read_socket): Don't make `buf' static
in case thread yielding happens inside.
Po Lu [Wed, 11 May 2022 06:56:43 +0000 (06:56 +0000)]
Fix event memory leak on Haiku
* src/haikuterm.c (haiku_read_socket): Allocate event buffer on
the stack.
Po Lu [Wed, 11 May 2022 03:48:36 +0000 (03:48 +0000)]
Fix frame invalidation on Haiku
* src/haiku_support.cc (FlipBuffers): Only set view bitmap if it
actually changed.
* src/haikuterm.c (haiku_clip_to_string_exactly)
(haiku_draw_window_cursor, haiku_draw_fringe_bitmap): Fix region
invalidation.
Po Lu [Wed, 11 May 2022 02:02:21 +0000 (02:02 +0000)]
Try to preserve font styles in the Haiku font dialog
* haiku_support.cc (class EmacsFontSelectionDialog)
(UpdateStylesForIndex): If a style was previously selected and
exists in the new family as well, select it after adding the new
items.
Po Lu [Wed, 11 May 2022 01:21:18 +0000 (01:21 +0000)]
Make reliefs on Haiku more like X
* src/haikuterm.c (haiku_draw_relief_rect): Use frame background
(normal GC) for corners.
Po Lu [Wed, 11 May 2022 01:13:36 +0000 (09:13 +0800)]
; * src/window.c (Fset_window_vscroll): Fix doc string.
Po Lu [Wed, 11 May 2022 01:09:05 +0000 (09:09 +0800)]
Clean up some MAYBE_UNUSED functions
* src/xterm.c (x_clear_area1): Wrap in the conditions where it
will actually be used.
Paul Eggert [Tue, 10 May 2022 22:20:49 +0000 (15:20 -0700)]
* src/eval.c (Ffunctionp): Clarify "function" in doc string.
Paul Eggert [Tue, 10 May 2022 21:47:09 +0000 (14:47 -0700)]
* src/floatfns.c: Update comment.
Paul Eggert [Tue, 10 May 2022 21:44:35 +0000 (14:44 -0700)]
Port libm configure-time test to Solaris 11.4
* configure.ac (LIB_MATH): Check all the math.h functions
that Emacs uses, not just sqrt (Bug#55294).
Alexander Adolf [Mon, 2 May 2022 21:01:11 +0000 (23:01 +0200)]
EUDC: Add completion-at-point support
* lisp/net/eudc-capf.el: New file.
* lisp/gnus/message.el (message-mode): Add `eudc-capf-complete' to
`completion-at-point-functions' when a `message-mode' buffer is
created.
* doc/misc/eudc.texi (Inline Query Expansion): Add a new subsection,
describing the new `completion-at-point' mechanism in `message-mode'.
* etc/NEWS (EUDC): Describe the new `completion-at-point' method.
समीर सिंह Sameer Singh [Mon, 9 May 2022 22:24:14 +0000 (03:54 +0530)]
Add support for the Siddham script
* lisp/language/indian.el ("Siddham"): New language environment.
Add composition rules for Siddham. Add sample text and input
method.
* lisp/international/fontset.el (script-representative-chars)
(setup-default-fontset): Support Siddham.
* lisp/leim/quail/indian.el ("siddham"): New input method.
* etc/HELLO: Add a Siddham greeting.
* etc/NEWS: Announce the new language environment and its
input method. (Bug#55350)
Eli Zaretskii [Tue, 10 May 2022 17:17:59 +0000 (20:17 +0300)]
; * etc/NEWS: Clarify entry about Buffers menu.
Eli Zaretskii [Tue, 10 May 2022 17:13:43 +0000 (20:13 +0300)]
; Fix recent changes in documentation of ispell.el
* etc/NEWS:
* lisp/textmodes/ispell.el (ispell-region, ispell-buffer): Avoid
passive tense in doc strings and NEWS.
Lars Ingebrigtsen [Tue, 10 May 2022 16:33:14 +0000 (18:33 +0200)]
Fix some quoting problems in defcustom :type
* lisp/progmodes/gdb-mi.el
(gdb-restore-window-configuration-after-quit):
* lisp/gnus/gnus.el (large-newsgroup-initial):
* lisp/eshell/em-hist.el (eshell-hist-ignoredups): Fix invalid
quoting in :type.
Lars Ingebrigtsen [Tue, 10 May 2022 15:46:55 +0000 (17:46 +0200)]
Add new command to toggle hiding all widgets in a Customize buffer
* lisp/cus-edit.el (custom-commands): Add menu entry.
(custom-toggle-hide-all-variables): New command (bug#15748).
Lars Ingebrigtsen [Tue, 10 May 2022 15:05:22 +0000 (17:05 +0200)]
Use fields on log-edit headers (which changes `C-a' behaviour)
* lisp/vc/log-edit.el (log-edit-insert-message-template): Fieldify
headers so that `C-a' takes us to the start of the string, not the
line (bug#15645).
Lars Ingebrigtsen [Tue, 10 May 2022 14:23:43 +0000 (16:23 +0200)]
Make ispell-region/buffer push the mark of the final word
* lisp/textmodes/ispell.el (ispell-region): Push the mark of the
final location.
(ispell-process-line): Change the return value to include the
position of the final word.
Lars Ingebrigtsen [Tue, 10 May 2022 13:33:32 +0000 (15:33 +0200)]
Fix markup in read-number doc string
* lisp/subr.el (read-number): Fix markup for the letter.
Lars Ingebrigtsen [Tue, 10 May 2022 13:25:06 +0000 (15:25 +0200)]
Allow packages to alter menu entries in the Buffers menu
* lisp/menu-bar.el (menu-bar-update-buffers): Use it.
(menu-bar-buffers-menu-command-entries): Put the entries into the
defvar so that packages can modify it (bug#14244).
Po Lu [Tue, 10 May 2022 13:34:19 +0000 (21:34 +0800)]
Improve display of relief rectangles on NS
* src/nsterm.m (ns_draw_relief): Respect cursor color and draw
corners like X.
Eli Zaretskii [Tue, 10 May 2022 13:13:04 +0000 (16:13 +0300)]
Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs
समीर सिंह Sameer Singh [Mon, 9 May 2022 19:19:58 +0000 (00:49 +0530)]
; * lisp/language/indian.el: Improve composition rules. (Bug#55341)
Po Lu [Tue, 10 May 2022 13:07:53 +0000 (21:07 +0800)]
Respect `alpha-background' drawing relief corners
* src/xterm.c (x_draw_relief_rect): Respect background alpha for
corner rects.
Eli Zaretskii [Tue, 10 May 2022 13:06:10 +0000 (16:06 +0300)]
; Fix recent documentation changes
* src/fileio.c (Fdo_auto_save):
* src/buffer.c (Fbuffer_modified_p, Frestore_buffer_modified_p):
* doc/lispref/buffers.texi (Buffer Modification): Improve
documentation of 'do-auto-save', 'buffer-modified-p' and
'restore-buffer-modified-p'.
Lars Ingebrigtsen [Tue, 10 May 2022 13:01:00 +0000 (15:01 +0200)]
Make `apropos-variable' include values in output
* lisp/apropos.el (apropos-print): Include variable values in the
output (bug#13842).
Eli Zaretskii [Tue, 10 May 2022 12:53:51 +0000 (15:53 +0300)]
; * etc/NEWS: Clarify recently-added entries.
Eli Zaretskii [Tue, 10 May 2022 12:47:06 +0000 (15:47 +0300)]
; * doc/emacs/building.texi (Compilation Mode): Fix typo.
Po Lu [Tue, 10 May 2022 09:38:53 +0000 (17:38 +0800)]
Fix display of depressed buttons
* src/xterm.c (x_draw_relief_rect): Fix typo.
Po Lu [Tue, 10 May 2022 09:00:39 +0000 (09:00 +0000)]
Improve relief rect handling on Haiku
* haikuterm.c (haiku_calculate_relief_colors): Calculate
backgrounds for image glyphs like on X.
(haiku_draw_relief_rect): Remove extra parameter.
(haiku_draw_string_box, haiku_draw_image_relief): Adjust
accordingly.
Po Lu [Tue, 10 May 2022 08:50:10 +0000 (16:50 +0800)]
Fix X11 relief background clearning when hwidth is larger than vwidth
* src/xterm.c (x_fill_triangle, x_make_point, x_inside_rect_p):
New functions.
(x_draw_relief_rect): Complete rewrite. Use more sensible
primitives.
Po Lu [Tue, 10 May 2022 08:01:00 +0000 (16:01 +0800)]
Improve display of reliefs on NS
* src/nsfont.m (nsfont_draw): Don't compensate for left box
twice.
* src/nsterm.m (ns_draw_relief): Draw outer edges of box like on
X.
Po Lu [Tue, 10 May 2022 06:40:26 +0000 (14:40 +0800)]
Handle deletion of opacity property too
* src/xterm.c (handle_one_xevent): Clear `alpha' frame parameter
when opacity prop is gone or invalid.
Po Lu [Tue, 10 May 2022 06:38:22 +0000 (14:38 +0800)]
Work around some broken programs when reading opacity prop
* src/xterm.c (handle_one_xevent): Accept some other types that
property is set to by thoughtless programs.
Lars Ingebrigtsen [Tue, 10 May 2022 05:05:43 +0000 (07:05 +0200)]
Fix bibtex-map-entries regression at bobp
* lisp/textmodes/bibtex.el (bibtex-map-entries): Fix regression
introduced by
c32e8b33f (bug#55342) -- don't fail when the first
entry is at bobp.
Stefan Kangas [Tue, 10 May 2022 04:30:34 +0000 (06:30 +0200)]
Merge from origin/emacs-28
7b4bdf7b9b Remove the AUCTeX subsection from MS-Windows FAQ
d2a5631552 Update AUCTeX FAQ entry
177718bc6d Update string-to-number documentation to bignum Emacs
74cc3b525f Fix doc string references to tags-loop-continue